#
# Loading the extpack configuration
#
# This module defines
# , where to find tiff.h, etc.
# CPPUNIT_LIBRARIES, the libraries to link against to use CppUnit.
# CPPUNIT_FOUND, If false, do not try to use CppUnit.

# also defined, but not for general use are
# CPPUNIT_LIBRARY, where to find the CppUnit library.
# CPPUNIT_DEBUG_LIBRARY, where to find the CppUnit library in debug mode.

message("[EXTPACK]")
if(NOT SDK_ROOT)
	find_path(EXTPACK_ROOT sdk PATHS $ENV{EXTPACK_ROOT})
	set(SDK_ROOT ${EXTPACK_ROOT}/sdk  CACHE STRING "external package path")
	message("using default sdk root: ${SDK_ROOT}")
endif(NOT SDK_ROOT)

# set boost
if(WIN32)
	set(ENV{BOOST_INCLUDEDIR} ${SDK_ROOT}/include/boost-1_47)
	set(ENV{BOOST_LIBRARYDIR} ${SDK_ROOT}/lib)
endif(WIN32)

if(UNIX)
	set(ENV{BOOST_ROOT} ${SDK_ROOT})
endif(UNIX)

# set module path for swig


# set ogre module path
set(ENV{OGRE_HOME} ${SDK_ROOT})
find_path(OGRE_MODULE_PATH FindOGRE.cmake PATHS ${SDK_ROOT}/CMake ${SDK_ROOT}/lib/OGRE/cmake)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${OGRE_MODULE_PATH})
set(OGRE_SAMPLES_INCLUDEPATH $ENV{OGRE_HOME}/Samples/include)
 
# set curl
set(CURL_INCLUDE_DIR ${SDK_ROOT} CACHE STRING "path for cmake to find curl")

